package testGame;


import boundary.gui.GUIManager;
import desktop_resources.GUI;

public class TestGUIManager extends GUIManager {

	private boolean animationActive = false;
	private desktop_fields.Field[] guiFields;
	private int integerC;
	private int boolC;
	private int stringC;
	private int[] integers = new int[] {
			2, // 0 set number of players
			0, // 1 1 kast
			0, // 2 1 end turn
			0, // 3 2 kast
			0, // 4 2 end turn
			0, // 5 1 kast
			0, // 6 1 kast igen
			0, // 7 1 kast igen (into prison)
			0, // 8 2 kast
			0, // 9 2 kast igen
			0, // 10 2 end turn
			0, // 11 1 kast (still in prison)
			0, // 12 1 end turn
			0, // 13 2 kast
			0, // 14 2 end turn
			0, // 15 1 kast (out of prison)
			0, // 16 1 kast BUG HERE
			0, // 17 1 end turn
			0, // 18 2 kast
			0, // 19 2 end turn
			0, // 20 1 kast
			0, // 21 1 kast igen (into prison)
			0, // 22 2 kast
			0, // 23 2 end turn
			1, // 24 1 jail betal
			0, // 25 1 kast
			0, // 26 1 end turn
			0, // 27 2 kast
			0, // 28 2 kast igen
			0, // 29 2 kast igen
			0, // 30 2 end turn
			0, // 31 1 kast
			0, // 32 1 end turn
			0, // 33 2 kast
			0, // 34 2 end turn
			0, // 35 1 kast
			0, // 36 1 end turn
			0, // 37 2 kast
			0, // 38 2 kast igen
			0, // 39 2 end turn
			0, // 40 1 kast
			0, // 41 1 kast igen
			0, // 42 1 kast igen
			0, // 43 1 end turn
			0, // 44 2 kast
			0, // 45 2 end turn
			0, // 46 1 kast
			0, // 47 1 end turn
			0, // 48 2 kast
			0, // 49 2 end turn
			0, // 50 1 kast
			0, // 51 1 end turn
			0, // 52 2 kast
			0, // 53 
			0,
			0,
			0,
			0,
			0, };
	private boolean[] bools = new boolean[] {
			true, // start
			true, // buy 6 heling�r
			true, // buy 4 blue street
			true, // buy 16 molslinjen
			false, // dont buy 20 grey
			true, // buy 13 tuborg
			true, // buy 24 red street
			true, // buy 29 calsberg
			true, // buy 38 purple
			true, // buy 22 red
			true, // buy 40 purple
			true, // buy 2 blue
			false, // choose percent
			true, // choose percent
			true,
			true,
			true,
			true,
			true, };
	private String[] strings = new String[] {
			"Spiller 1", // type in player1
			"Spiller 2", // type in player2
			"",
			"" };

	private int updateInteger() {
		return integers[integerC++];
	}

	private boolean updateBoolean() {
		return bools[boolC++];
	}

	private String updateString() {
		return strings[stringC++];
	}

	@Override
	public int getInteger(String msg) {
		int integer = updateInteger();
		GUI.showMessage(msg + " - valg: " + Integer.toString(integer) + " counter: " + (integerC - 1));
		return integer;
	}

	@Override
	public boolean getBoolean(String msg, String c1, String c2) {
		boolean bool = updateBoolean();
		GUI.showMessage(msg + " - valg: " + Boolean.toString(bool));
		return bool;
	}

	@Override
	public String getBooleanMultiple(String msg, String... c) {
		int integer = updateInteger();
		GUI.showMessage(msg + " - valg: " + c[integer] + " counter: " + (integerC - 1));
		return c[integer];
	}

	@Override
	public String getString(String msg) {
		String string = updateString();
		GUI.showMessage(string);
		return string;
	}

}
